package com.etc.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.etc.dao.StudentDao;
import com.etc.entity.Students;
import com.etc.service.StudentService;
import com.etc.util.PageData;

@Service(value = "stuservice")
public class StudentServiceImpl implements StudentService {
	@Resource(name = "studao")
	private StudentDao sd;

	public StudentDao getSd() {
		return sd;
	}

	public void setSd(StudentDao sd) {
		this.sd = sd;
	}
	/**
	 * 查询所有
	 */
	@Override
	public List<Students> getStudent() {
		// TODO Auto-generated method stub
		return sd.getStudent();
	}
	/**
	 * 查询单个
	 */
	@Override
	public Students getStudentById(int sid) {
		// TODO Auto-generated method stub
		return sd.getStudentById(sid);
	}

	@Override
	public PageData<Students> getStudentLimit(int page, int limit, String content) {
		// TODO Auto-generated method stub
		return sd.getStudentLimit(page, limit, content);
	}

}
